﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Attributes - HTML</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function GetValue() {
            alert($("#Div1").html());
        }

        function SetValue() {
            $("#Div2").html('<input type="text" value="im just created" />');
        }
    </script>
    <style type="text/css">
    .box
    {
        border:dashed 1px #000;
        padding:13px;
        margin-top:13px;
        margin-bottom:13px;
    }
    </style>
</head>
<body>
    <div id="Div1" class="box">
        hello jQuery...this message was written on 18 August 2009.
    </div>
    <input type="button" value="get value" onclick="GetValue()" />
    
    <div id="Div2" class="box">
        
    </div>
    <input type="button" value="set value" onclick="SetValue()" />
</body>
</html>
